function createResponse(res, httpCode,businessCode,data) {
    let code, message
  
    if (businessCode) {              
        ({code, message} = businessCode);
    }
  
    res.status(httpCode).json({
        from:'server',
        businessCode: code,
        businessMessage: message,
        businessDocuments:data
    });
}



module.exports={
    createResponse
}